﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ClassDemo
{
    public class Phone
    {
        /// <summary>
        /// 变量，字段，全局变量
        /// </summary>
        private int price;

        /// <summary>
        /// 属性
        /// </summary>
        public int Price
        {
            set
            {//给字段赋值
                price = value;
            }
            get
            {//返回字段的值
                return price;
            }
        }

    }
}
